import axios from "axios";

let http = axios.create({
    baseURL:"",
    timeout:10*1000
});


http.interceptors.request.use(
    (config) =>{
        
        return config;
    },
    (err) =>{
       
        return Promise.reject(err);
    }
);

http.interceptors.response.use(
    (res) =>{
        
        return res.data
    },
    (err) =>{
        
        return Promise.reject(err);
    }
);
export default http;